package com.syt.eduservice.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class CourseQuery {
    @ApiModelProperty(value = "课程名称,模糊查询")
    private String title;

    @ApiModelProperty(value = "状态 Normal发布 Draft未发布")
    private String status;

    public void setStatus(String status) {
        if (status.equals("2")){
            this.status="Normal";
        }else if (status.equals("1")){
            this.status="Draft";
        }
    }
}
